From a352d8d69f9d301189d26cff7cd34ddbd663c490 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 19 Jan 2007 12:11:52 +0000 Subject: [PATCH] [MINIOS] Added domctl and sysctl hypercalls to the architecture-specific header files. Also increased the __XEN_INTERFACE_VERSION__ to 0x00030205. Signed-off-by: Derek Murray --- extras/mini-os/Makefile | 2 +- .../mini-os/include/x86/x86_32/hypercall-x86_32.h | 14 ++++++++++++++ .../mini-os/include/x86/x86_64/hypercall-x86_64.h | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/extras/mini-os/Makefile b/extras/mini-os/Makefile index ad4ff8d910..df313e48d5 100644 --- a/extras/mini-os/Makefile +++ b/extras/mini-os/Makefile @@ -9,7 +9,7 @@ pae ?= n XEN_ROOT = ../.. include $(XEN_ROOT)/Config.mk -XEN_INTERFACE_VERSION := 0x00030204 +XEN_INTERFACE_VERSION := 0x00030205 export XEN_INTERFACE_VERSION # Set TARGET_ARCH diff --git a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h index 9c41c946b2..fbaa7ba16e 100644 --- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h +++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h @@ -305,6 +305,20 @@ HYPERVISOR_nmi_op( return _hypercall2(int, nmi_op, op, arg); } +static inline int +HYPERVISOR_sysctl( + unsigned long op) +{ + return _hypercall1(int, sysctl, op); +} + +static inline int +HYPERVISOR_domctl( + unsigned long op) +{ + return _hypercall1(int, domctl, op); +} + #endif /* __HYPERCALL_X86_32_H__ */ /* diff --git a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h index 3a4aa049e8..179b776ed5 100644 --- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h +++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h @@ -305,6 +305,20 @@ HYPERVISOR_nmi_op( return _hypercall2(int, nmi_op, op, arg); } +static inline int +HYPERVISOR_sysctl( + unsigned long op) +{ + return _hypercall1(int, sysctl, op); +} + +static inline int +HYPERVISOR_domctl( + unsigned long op) +{ + return _hypercall1(int, domctl, op); +} + #endif /* __HYPERCALL_X86_64_H__ */ /* -- 2.30.2